package edu.hust.WebMagicTest;

import java.util.Map;

import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

public class CsdnPipeLine implements Pipeline {

	public void process(ResultItems resultitems, Task task) {
		System.out.println("URL: " + resultitems.getRequest().getUrl());
		for(Map.Entry<String, Object> entry : resultitems.getAll().entrySet()){
			System.out.println(entry.getKey() + ": " + entry.getValue());
		}
	}
}
